package com.worthtech.billportal.bean;

/**
 * CsLiqInfoBhId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class CsLiqInfoBhId implements java.io.Serializable {

	// Fields

	private String pepdate;
	private String peptime;
	private String mercode;
	private String termcode;
	private String traceYl;

	// Constructors

	/** default constructor */
	public CsLiqInfoBhId() {
	}

	/** full constructor */
	public CsLiqInfoBhId(String pepdate, String peptime, String mercode,
			String termcode, String traceYl) {
		this.pepdate = pepdate;
		this.peptime = peptime;
		this.mercode = mercode;
		this.termcode = termcode;
		this.traceYl = traceYl;
	}

	// Property accessors

	public String getPepdate() {
		return this.pepdate;
	}

	public void setPepdate(String pepdate) {
		this.pepdate = pepdate;
	}

	public String getPeptime() {
		return this.peptime;
	}

	public void setPeptime(String peptime) {
		this.peptime = peptime;
	}

	public String getMercode() {
		return this.mercode;
	}

	public void setMercode(String mercode) {
		this.mercode = mercode;
	}

	public String getTermcode() {
		return this.termcode;
	}

	public void setTermcode(String termcode) {
		this.termcode = termcode;
	}

	public String getTraceYl() {
		return this.traceYl;
	}

	public void setTraceYl(String traceYl) {
		this.traceYl = traceYl;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof CsLiqInfoBhId))
			return false;
		CsLiqInfoBhId castOther = (CsLiqInfoBhId) other;

		return ((this.getPepdate() == castOther.getPepdate()) || (this
				.getPepdate() != null
				&& castOther.getPepdate() != null && this.getPepdate().equals(
				castOther.getPepdate())))
				&& ((this.getPeptime() == castOther.getPeptime()) || (this
						.getPeptime() != null
						&& castOther.getPeptime() != null && this.getPeptime()
						.equals(castOther.getPeptime())))
				&& ((this.getMercode() == castOther.getMercode()) || (this
						.getMercode() != null
						&& castOther.getMercode() != null && this.getMercode()
						.equals(castOther.getMercode())))
				&& ((this.getTermcode() == castOther.getTermcode()) || (this
						.getTermcode() != null
						&& castOther.getTermcode() != null && this
						.getTermcode().equals(castOther.getTermcode())))
				&& ((this.getTraceYl() == castOther.getTraceYl()) || (this
						.getTraceYl() != null
						&& castOther.getTraceYl() != null && this.getTraceYl()
						.equals(castOther.getTraceYl())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getPepdate() == null ? 0 : this.getPepdate().hashCode());
		result = 37 * result
				+ (getPeptime() == null ? 0 : this.getPeptime().hashCode());
		result = 37 * result
				+ (getMercode() == null ? 0 : this.getMercode().hashCode());
		result = 37 * result
				+ (getTermcode() == null ? 0 : this.getTermcode().hashCode());
		result = 37 * result
				+ (getTraceYl() == null ? 0 : this.getTraceYl().hashCode());
		return result;
	}

}